package day01;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/16
 */
//1、封装一个银行账户类，里面有账户id、户主姓名、户主身份证号、户主电话、户主邮箱5个属性
// 私有化这些属性并提供对应的get以及set方法
// 并在测试类中测试。

public class BankAccount {

        private String accountId;
        private String name;
        private String idCard;
        private String phone;
        private String email;

        // Getter and Setter 方法
        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }
    }


